Skip to content

Get Latest Export

Request

Returns the most recent classic Insights report that has been successfully and completely exported by a scheduled job. The response contains a URL to download the report, as well as a timestamp for when the data in the report was last updated, so you may determine if the report reflects current data.

In order to keep exported data secure, the URL returned in the response expires in 60 seconds. The URL expiration period is subject to change. If you do not initiate a download of the report before the link expires, you can send a new request to generate a new URL.

Exporting a report can take from seconds to 20 minutes, depending on the report size. Because export time varies, please send requests until the latest data is returned. If there are no previously exported reports yet, the response code and message will indicate this.

Because exported reports can be up to 10 GB, reports are downloaded in a compressed format (.gz) and must be decompressed in order to access the CSV file.

Path
insights_report_export_idintegerrequired

The ID of the Insights report export.

curl -i -X GET \
  'https://api.mavenlink.com/api/v1/scheduled_jobs/insights_report_exports/{insights_report_export_id}/results/latest'

Responses

A list of Insights Report Exports have been retrieved.

Bodyapplication/json
latest_successobject

Download the most recent successfully exported report.

Response
{ "latest_success": { "url": "string", "created_at": "2019-08-24T14:15:22Z" } }